<?php

namespace app\command;

use app\api\worker\ChatWorker;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use Workerman\Worker;
use Workerman\Lib\Timer;
class Chat1 extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('chat1');
        // 设置命令描述
        $this->setDescription('聊天服务2');
    }

    protected function execute(Input $input, Output $output)
    {
        $chatWorker = new ChatWorker();
        Worker::runAll();
    }
}